<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
<jsp:include page="/WEB-INF/jsp_lib/validate.jsp" />
<script type="text/javascript">
	$(function() {

		$("input[name='type'][value='${user.type}']")
				.attr("checked", "checked");
		$("input[name='is_auth'][value='${user.is_auth}']").attr("checked",
				"checked");
		$("input[name='user_level'][value='${user.user_level}']").attr(
				"checked", "checked");
		$("select[name='role_id']").val('${user.role_id}');
		$("select[name='login_type']").val("${user.login_type}");
		$("input[name='is_auth'][value='${user.is_auth}']").attr("checked",
				"checked");

	});
	$(function() {
		$("input[name='flag'][value='${verify.flag}']").attr("checked",
				"checked");
		$("input[name='flag_type'][value='${verify.flag_type}']").attr(
				"checked", "checked");
	});
	function mySubmit() {
		$("#form1").submit();
	}
</script>
</head>
<body>
	<div>
		<form action="${path}/ix/user/verify/edit.htm" id="form1"
			method="post">
			<input name='verify_id' value="${verify._id}" type="hidden" />
			<h2>
				<div>人员</div>
			</h2>
			<table width="100%" class="lindex">
				<tr>
					<th align="right">人员代码：</th>
					<td align="left" colspan="2"><input type="text" maxlength="50"
						value="${user.code}" readOnly /> <c:if
							test="${user.code!=after.code}">
							<p style="color:red;float:right;">${after.code}</p>
						</c:if></td>
					<th align="right">BoEing账号：</th>
					<td align="left" colspan="2"><input type="text" maxlength="50"
						value="${user.boeing}" readOnly /> <c:if
							test="${user.boeing!=after.boeing}">
							<p style="color:red;float:right;">${after.boeing}</p>
						</c:if></td>
				</tr>
				<tr>
					<th align="right">人员名称：</th>
					<td align="left" colspan="2"><input type="text" maxlength="50"
						value="${user.uname}" readOnly /> <c:if
							test="${user.uname!=after.uname}">
							<p style="color:red;float:right;">${after.uname}</p>
						</c:if></td>
					<th align="right">身份证号：</th>
					<td align="left" colspan="2"><input type="text" maxlength="20"
						value="${user.p_id}" readOnly /> <c:if
							test="${user.p_id!=after.p_id}">
							<p style="color:red;float:right;">${after.p_id}</p>
						</c:if></td>
				</tr>
				<tr>
					<th align="right">联系电话：</th>
					<td align="left" colspan="2"><input type="text" maxlength="20"
						value="${user.phone}" readOnly /> <c:if
							test="${user.phone!=after.phone}">
							<p style="color:red;float:right;">${after.phone}</p>
						</c:if></td>
					<th align="right">用户类型：</th>
					<td align="left" colspan="2"><input name="type" type="radio"
						value="一般用户" disabled />一般用户&nbsp; <input name="type" type="radio"
						value="管理用户" disabled />管理用户 <c:if
							test="${user.type!=after.type}">
							<p style="color:red;float:right;">${after.type}</p>
						</c:if></td>
				</tr>

				<tr>
					<th align="right">所属机构：</th>
					<td align="left" colspan="2"><input type="text" maxlength="30"
						value="${bank.name} " readOnly /> <c:if
							test="${user.bank_id!=after.bank_id}">
							<p style="color:red;float:right;">${bank2}</p>
						</c:if></td>
					<th align="right"></th>
					<td align="left" colspan="2"></td>
				</tr>

				<tr>
					<th align="right">登录方式：</th>
					<td align="left" colspan="2"><select name="login_type"
						disabled>
							<option value="生产库密码验证">生产库密码验证</option>
							<option value="指纹验证">指纹验证</option>
					</select> <c:if test="${user.login_type!=after.login_type}">
							<p style="color:red;float:right;">${after.login_type}</p>
						</c:if></td>
					<th align="right">主管级别：</th>
					<td align="left" colspan="2"><input name="user_level"
						type="radio" value="非主管" disabled />非主管&nbsp; <input
						name="user_level" type="radio" value="三级主管" disabled />三级主管 <c:if
							test="${user.user_level!=after.user_level}">
							<p style="color:red;float:right;">${after.user_level}</p>
						</c:if></td>
				</tr>


				<tr>
					<th align="right">备注信息：</th>
					<td align="left" colspan="2"><textarea rows="6" cols="50"
							readOnly>${user.note}</textarea> <c:if
							test="${user.note!=after.note}">
							<p style="color:red;float:right;">${after.note}</p>
						</c:if></td>
					<th align="right">用户角色：</th>
					<td align="left" colspan="2"><select name="role_id" disabled>
							<c:forEach items="${role}" var="v">
								<option value="${v._id}">${v.name}</option>
								<c:if test="${user.role_id!=after.role_id}">
									<p style="color:red;float:right;">${v.name}</p>
									<c:if test="${v._id==after.role_id}">
										<p style="color:red;float:right;">${v.name}</p>
									</c:if>
								</c:if>
							</c:forEach>
					</select> <c:forEach items="${role}" var="v">
							<c:if test="${user.role_id!=after.role_id}">
								<c:if test="${v._id==after.role_id}">
									<p style="color:red;float:right;">${v.name}</p>
								</c:if>
							</c:if>
						</c:forEach></td>
				</tr>

				<tr>
					<th align="right">人员状态：</th>
					<td align="left" colspan="2">${user.user_flag}</td>
					<th align="right">登录状态：</th>
					<td align="left" colspan="2">${user.login_flag}</td>
				</tr>
			</table>
			<div id="response"></div>
			<div class="options" style="margin-top: 20px;">
				<h2>
					<div>审核</div>
				</h2>
				<table width="100%" class="listlindex">
					<tr>
						<th align="right">是否通过：</th>
						<td align="left" colspan="3"><input name="flag" value="通过"
							type="radio" checked="checked">通过 <input name="flag"
								value="不通过" type="radio">不通过 </td>
					</tr>
					<tr>
						<th align="right">备注：</th>
						<td align="left" colspan="3"><textarea name="note" rows="5"
								cols="50" maxlength="255">${verify.note}</textarea></td>
					</tr>
				</table>
			</div>
			<div class="options">
				<a href="javascript:mySubmit();" class="asave"> 【保存】 </a> <a
					href="javascript:goBack();" class="asave"> 【返回】 </a>
			</div>
		</form>
</body>
</html>